import axios from '../../utils/request'

interface ParamsType {
  page?: number | string
  size?: number | string
}

export const getTableList = ({ page = 1, size = 10 }: ParamsType) => {
  return axios.get('/api/list', { params: { page, size } })
}
